package com.central.scheduler.plugin.task.util;

/**
 * @author Tindy
 * @date 2022/5/6
 * @describe
 */
public class ArgsUtils {

    private ArgsUtils() throws IllegalStateException {
        throw new IllegalStateException("Utility class");
    }

    public static String escape(String arg) {
        return arg.replace(" ", "\\ ").replace("\"", "\\\"").replace("'", "\\'");
    }

}
